package com.naiterui.ehp.bs.patient.service.message;

import com.naiterui.ehp.bp.bo.patient.*;
import com.naiterui.ehp.bp.support.exception.BusinessException;
import com.naiterui.ehp.bs.patient.vo.message.MessageVo;

/**
 * @Date:2018/11/1
 * @Time:10:16
 * @Version:V1.0
 */
public interface IMessageSendService {

    Integer sendMessage(MessageVo messageVo);

    MsgPublishBO publishMessage(MsgPublishParamBO publishParamBO);

    void publishBatchMessage(MsgPublishBatchParamBO publishBatchParamBO);

    void sendRecord(Long patientId, Long inquirerId, Long doctorId, Integer type, String recordId, String openId, String doctorName, Integer clinic)
        throws BusinessException;

    /**
     * 发布小程序消息
     * @param publishParamBO 消息内容
     * @return /
     */
    MsgPublishBO publishMaMessage(MsgMaPublishParamBO publishParamBO);

    /**
     * 批量发布小程序消息
     * @param publishBatchParamBO
     */
    void publishBatchMaMessage(MsgMaPublishBatchParamBO publishBatchParamBO);

    /**
     * 患者首次绑定医生 赠送图文问诊
     * @param patientId
     * @param inquirerId
     * @param doctorId
     * @param openId
     * @param doctorName
     */
    void sendFirstFreeSession(Long patientId, Long inquirerId, Long doctorId, String openId, String doctorName);
}
